package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @TableName tb_assert_org
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_assert_org")
public class Organization implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 组织id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 组织名
     */
    private String orgName;
    /**
     * 父组织名
     */
    private String fatherName;
    /**
     * 父组织id
     */
    private Integer fatherId;
    /**
     * 组织描述
     */
    private String orgDesc;

}